<?php

class Json{
    static function Success($code=0, $message='success', $data=null){
        return json_encode(["code"=>$code, "message"=>$message, "data"=>$data]);
    }
    static function Fail($code=1, $message='fail', $data=null){
        return json_encode(["code"=>$code, "message"=>$message, "data"=>$data]);
    }
}